n = int(input())
sum = 0
for i in range(1,n*2,2):
    sum += 1/i
print(f"sum={sum:.6f}")
